//
//  SY_ClassFormCustomCell.m
//  FaceRecognition
//
//  Created by syun on 2017/10/26.
//  Copyright © 2017年 Sylar. All rights reserved.
//

#import "SY_ClassFormCustomCell.h"

@implementation SY_ClassFormCustomCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        float w = (SCREENWIDTH - 24)/4;
        float w2 = ((SCREENWIDTH - 24)/4*3 - 30)/3;
        _timeLable = [[UILabel alloc]initWithFrame:CGRectMake(12, 0, w, 44)];
        _timeLable.textColor = [UIColor colorWithHexString:@"3b3b3b"];
        _timeLable.font = [UIFont systemFontOfSize:15];
        
        _lateNum = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_timeLable.frame) +10, 0, w2, 44)];
        _lateNum.textColor = [UIColor colorWithHexString:@"3b3b3b"];
        _lateNum.font = [UIFont systemFontOfSize:15];
        _lateNum.textAlignment = NSTextAlignmentCenter;
        
        _absentNum = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_lateNum.frame)+10, 0, w2, 44)];
        _absentNum.textColor = [UIColor colorWithHexString:@"3b3b3b"];
        _absentNum.font = [UIFont systemFontOfSize:15];
        _absentNum.textAlignment = NSTextAlignmentCenter;
        
        
        _leaveNum = [[UILabel alloc]initWithFrame:CGRectMake(CGRectGetMaxX(_absentNum.frame)+10, 0, w2, 44)];
        _leaveNum.textColor = [UIColor colorWithHexString:@"3b3b3b"];
        _leaveNum.font = [UIFont systemFontOfSize:15];
        _leaveNum.textAlignment = NSTextAlignmentCenter;
        
        
        
        [self.contentView addSubview:_timeLable];
        [self.contentView addSubview:_lateNum];
        [self.contentView addSubview:_absentNum];
        [self.contentView addSubview:_leaveNum];
        
        UIView * line = [[UIView alloc]initWithFrame:CGRectMake(12, 38.5, SCREENWIDTH-12, 0.5)];
        line.backgroundColor = [UIColor colorWithHexString:@"dedede"];
        [self.contentView addSubview:line];
        
    }
    
    return self;
    
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
